package com.sneakxy.mybase4j.generator.config;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

import org.apache.commons.lang3.StringUtils;

/**
 * 路径
 * @author 潜行的青衣
 * @see
 */
public class Dirs {

	private String outDir;

	private String modelOutDir;
	
	private String repositoryOutDir;
	
	private String serviceInterfaceOutDir;
	
	private String serviceImplOutDir;
	
	private String providerInterfaceOutDir;
	
	private String providerImplOutDir;
	
	@XmlAttribute(name="outDir")
	public String getOutDir() {
		return outDir;
	}

	public void setOutDir(String outDir) {
		this.outDir = outDir;
	}

	@XmlElement(name="ModelOutDir", namespace="http://www.mybase4j.org/generator")
	public String getModelOutDir() {
		return StringUtils.isBlank(modelOutDir) ? this.outDir : this.modelOutDir;
	}

	public void setModelOutDir(String modelOutDir) {
		this.modelOutDir = modelOutDir;
	}

	@XmlElement(name="RepositoryOutDir", namespace="http://www.mybase4j.org/generator")
	public String getRepositoryOutDir() {
		return StringUtils.isBlank(repositoryOutDir) ? this.outDir : this.repositoryOutDir;
	}

	public void setRepositoryOutDir(String repositoryOutDir) {
		this.repositoryOutDir = repositoryOutDir;
	}

	@XmlElement(name="ServiceInterfaceOutDir", namespace="http://www.mybase4j.org/generator")
	public String getServiceInterfaceOutDir() {
		return StringUtils.isBlank(serviceInterfaceOutDir) ? this.outDir : this.serviceInterfaceOutDir;
	}

	public void setServiceInterfaceOutDir(String serviceInterfaceOutDir) {
		this.serviceInterfaceOutDir = serviceInterfaceOutDir;
	}

	@XmlElement(name="ServiceImplOutDir", namespace="http://www.mybase4j.org/generator")
	public String getServiceImplOutDir() {
		return StringUtils.isBlank(serviceImplOutDir) ? this.outDir : this.serviceImplOutDir;
	}

	public void setServiceImplOutDir(String serviceImplOutDir) {
		this.serviceImplOutDir = serviceImplOutDir;
	}

	@XmlElement(name="ProviderInterfaceOutDir", namespace="http://www.mybase4j.org/generator")
	public String getProviderInterfaceOutDir() {
		return StringUtils.isBlank(providerInterfaceOutDir) ? this.outDir : this.providerInterfaceOutDir;
	}

	public void setProviderInterfaceOutDir(String providerInterfaceOutDir) {
		this.providerInterfaceOutDir = providerInterfaceOutDir;
	}

	@XmlElement(name="ProviderImplOutDir", namespace="http://www.mybase4j.org/generator")
	public String getProviderImplOutDir() {
		return StringUtils.isBlank(providerImplOutDir) ? this.outDir : this.providerImplOutDir;
	}

	public void setProviderImplOutDir(String providerImplOutDir) {
		this.providerImplOutDir = providerImplOutDir;
	}
	
}
